package com.trkj.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;


/**
 * The persistent class for the DOCUMENT_REVIEW database table.
 * 
 */
@Entity
@Table(name="DOCUMENT_REVIEW")
@NamedQuery(name="DocumentReview.findAll", query="SELECT d FROM DocumentReview d")
public class DocumentReview implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="DOCUMENT_REVIEW_REVIEWID_GENERATOR", sequenceName="HR")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="DOCUMENT_REVIEW_REVIEWID_GENERATOR")
	@Column(name="REVIEW_ID")
	private long reviewId;

	@Column(name="REVIEW_DATE")
	private Timestamp reviewDate;

	@Column(name="REVIEW_STATE")
	private BigDecimal reviewState;

	//bi-directional many-to-one association to DocumentMaster
	@ManyToOne
	@JoinColumn(name="DOCU_ID")
	private DocumentMaster documentMaster;

	public DocumentReview() {
	}

	public long getReviewId() {
		return this.reviewId;
	}

	public void setReviewId(long reviewId) {
		this.reviewId = reviewId;
	}

	public Timestamp getReviewDate() {
		return this.reviewDate;
	}

	public void setReviewDate(Timestamp reviewDate) {
		this.reviewDate = reviewDate;
	}

	public BigDecimal getReviewState() {
		return this.reviewState;
	}

	public void setReviewState(BigDecimal reviewState) {
		this.reviewState = reviewState;
	}

	public DocumentMaster getDocumentMaster() {
		return this.documentMaster;
	}

	public void setDocumentMaster(DocumentMaster documentMaster) {
		this.documentMaster = documentMaster;
	}

}